<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/changeOrder.do"/>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.sales.forms.SalesOrderForm,
                 com.scalar.chiptrack.commons.Constants"%>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<SCRIPT language="JavaScript">
    function submitPage(action)
    {
        if(action == 'CONFIRM')
            document.salesOrderForm.action.value = "ConfirmChangeOrder";
        else if(action == 'EDIT')
            document.salesOrderForm.action.value = "EditChangeOrder";

        document.salesOrderForm.submit();
    }
function showErrorReportPage()
{
    newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
    newWindow.focus();
}

function showPrintView()
{
     var isSample = document.salesOrderForm.isSample.value;
     window.open('changeOrder.do?action=printView&isSample='+isSample,'printViewPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=600,height=600,left=100,top=50,resizable=yes');
}

</SCRIPT>


<!-- Top Header Start-->
    <%
        String userTypeChiptrac = Constants.USER_TYPE_CHIPTRAC + "";
    %>
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/header.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/extHeader.jsp" %>
    </logic:notEqual>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->
<% String heading = ""; String isSample = "";%>
<% if((request.getParameter("isSample") != null) && (request.getParameter("isSample").equals("0"))) {
         heading = "Sample Order"; isSample = "0";
%>
	    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/sample_order_menu.jsp" %>
        </logic:equal>
        <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/ext_sample_order_menu.jsp" %>
        </logic:notEqual>
<% } else {
     heading = "Sales Order"; isSample = "1";
%>
        <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/sales_order_menu.jsp" %>
        </logic:equal>
        <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/ext_sales_order_menu.jsp" %>
        </logic:notEqual>
<% } %>


</TD>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->
<html:form name="salesOrderForm" action="/changeOrder" method="post" type="com.scalar.chiptrack.sales.forms.SalesOrderForm">

<center><span class="NArialW">Change <%=heading%> Entry</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>

   <table border="0" width="90%" align=right>
    <tr><td colspan=6 class="NArialL"><chiptrack:info styleClass="NArialL"  /></td></tr>
   <tr>
   <td colspan=3 class="NArialL">Click here to <a href='javascript:showPrintView();' onmouseover="window.status='Click to Print/View Changed Sales Order';return true" onmouseout="window.status='';return true" > view/print </a> <%= "0".equals ( isSample ) ? "Sample" : "Sales" %> Order Details</td>
   <td colspan=2 align=right>
        <a href="javascript:submitPage('EDIT');" onmouseover="window.status='Click to Edit Sales Order Changes';return true" onmouseout="window.status='';return true" title="Click here to Edit Sales Order Changes"><img src="<%=chipTracContext%>/jsp/includes/images/edit.gif" border='0'></a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="javascript:submitPage('CONFIRM');" onmouseover="window.status='Click to Confirm Changes to Sales Order';return true" onmouseout="window.status='';return true" title="Click here to Confirm Changes to Sales Order"><img src="<%=chipTracContext%>/jsp/includes/images/confirm.gif" border='0'></a>
   <td>&nbsp;</td>
   </tr>
   <tr><td colspan=6>&nbsp;</td></tr>

    <tr>
       <td width="21%"><font class="NArialL">Sales Order No :</font></td>
       <td width="21%" class="bodytext"><b><bean:write name="salesOrderForm" property="salesOrderNo" /></b></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">Customer Name :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="customerName" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Change No :</font></td>
       <td width="21%" class="bodytext"><b><bean:write name="salesOrderForm" property="changeNo" /></b></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">Reason :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="reason" /></td>
       <td width="3%">&nbsp;</td>
     </tr>

     <tr>
       <td width="21%"><font class="NArialL">Customer PO No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="customerPO" /></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">Contact Person :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="contactPerson" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.PoRevisionNumber"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="poRev" /></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL"><bean:message key="label.sales.salesOrder.PoDate"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="poDate" /></td>
       <td width="3%">&nbsp;</td>
     </tr>

     <tr>
       <td width="21%"><font class="NArialL">Phone No:</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="phoneNumber" /></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">Cell No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="cellNumber" /></td>
	   <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Fax No:</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="faxNumber" /></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">Email :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="email" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
	  <tr>
       <td width="21%"><font class="NArialL">Sales Person :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="salesPerson" /></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL"><bean:message key="label.sales.salesRep.Name"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="salesRep" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.ShippingMethod" /> :</font></td>
       <td width="21%" class="bodytext">
       <logic:notEqual name="salesOrderForm" property="shippingMethod" value="-1">
            <bean:write name="salesOrderForm" property="shippingMethod" /></td>
       </logic:notEqual>
        <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">Regional Rep : </font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="regionalRep" />
       <td width="3%">&nbsp;</td>
     </tr>
      <tr>
       <logic:equal value="-2" name="salesOrderForm" property="endCustomerId">
           <td width="21%" class="NArialL">Add New <bean:message key="label.sales.endUser"/> :</td>
           <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="newEndUserName"  /></td>
       </logic:equal>
       <logic:notEqual value="-2" name="salesOrderForm" property="endCustomerId">
           <td width="21%"><font class="NArialL"><bean:message key="label.sales.endUser"/> :</font></td>
           <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="endCustomer"  /></td>
       </logic:notEqual>
       <td width="3%">&nbsp;</td>
        <logic:equal value="-2" name="salesOrderForm" property="odmId">
            <td width="25%" class="NArialL">Add New <bean:message key="label.sales.shipToCustomer"/></td>
            <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="newEndCustomerName" /></td>
        </logic:equal>
        <logic:notEqual value="-2" name="salesOrderForm" property="odmId">
            <td width="25%"><font class="NArialL"><bean:message key="label.sales.shipToCustomer"/></font></td>
            <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="odm" /></td>
        </logic:notEqual>
       <td width="3%">&nbsp;</td>
     </tr>
    <tr>
       <td width="21%"><font class="NArialL">Pay Terms :</font></td>
       <td width="21%" class="bodytext">
       <logic:notEqual name="salesOrderForm" property="shippingTerms" value="-1">
        <bean:write name="salesOrderForm" property="shippingTerms"  />
       </logic:notEqual>
       </td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL"><bean:message key="label.sales.salesOrder.DeliveryTerms" /> : </font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="deliveryTerms" />
        </td>
       <td width="3%">&nbsp;</td>
     </tr>
     <% if ( Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase( ConfigManager.getClientNameAirgo() ) ) { %>
     <tr>
       <td width="21%"><font class="NArialL">Letter of Credit No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="letterOfCreditNo"  /></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">L/C Issuing Bank :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="lcIssuingBank" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <% } %>
	<tr>
		<td width="21%"><font class="NArialL">Booking Date : </font></td>
		<td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="salesOrderDate"/>
		</td>
		<td width="3%">&nbsp;</td>
		<logic:equal value="true" name="salesOrderForm" property="isConsignee">
			<td width="15%" class="NArialL">Invoice to Customer :</td>
			<td width="20%" class="bodytext">
				<logic:equal value="0" name="salesOrderForm" property="isConsignmentSales">No</logic:equal>
				<logic:notEqual value="0" name="salesOrderForm" property="isConsignmentSales">Yes</logic:notEqual></td>
		</logic:equal>
		<logic:notEqual value="0" name="salesOrderForm" property="isConsignmentSales">
			<td width="15%">&nbsp;</td>
			<td width="20%">&nbsp;</td>
		</logic:notEqual>
	</tr>
		<tr>
			<td width="21%" class="NArialL"><bean:message key="label.sales.userField1"/> :</td>
			<td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="userField1"/></td>
			<td width="3%">&nbsp;</td>
			<td width="27%" class="NArialL"><bean:message key="label.sales.userField2"/> :</td>
			<td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="userField2"/></td>
			<td width='3%'>&nbsp;</td>
		</tr>
     <tr>
       <td width="21%" valign="top"><font class="NArialL">Billing Address :</font></td>
       <td width="21%" valign="top" class="bodytext">
        <%SalesOrderForm salesOrderForm = (SalesOrderForm) session.getAttribute("salesOrderForm");%>
        <%=salesOrderForm.getBillingAddressAsHTML()%>
        </td>
       <td width="3%">&nbsp;</td>
       <td width="25%" valign="top"><font class="NArialL">Shipping Address :</font></td>
       <td width="21%" valign="top" class="bodytext">
        <%=salesOrderForm.getShippingAddressAsHTML()%>
       </td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr><td colsapn=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
     <tr>
       <td width="21%"><font class="NArialL">Freight Instructions :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="freightInstructions"/></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">Shipping Instructions :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="shippingInstructions" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Comments :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="comments"/></td>
       <td width="3%">&nbsp;</td>
       <td width="25%">&nbsp;</font></td>
       <td width="21%">&nbsp;</td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
     <tr><td colspan=6>
       <table border="0" width="95%" bordercolor="#FFFFFF">
        <% int noOfColumnsBeforeQty = 7; %>
		<tr>
			<td width="8%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Line Item</font></td>
			<td width="8%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">PO Line Item</font></td>
			<td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF"><bean:message key="label.mfgPartNumber" /></font></td>
            <% if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_MARKETING_PART_NUMBER)) { %>
                <td width="15%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.mktgPartNumber" /></font></td>
             <% noOfColumnsBeforeQty ++; } %>
			<td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF"><bean:message key="label.customerPartNumber"/></font></td>
			<td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Description</font></td>
			<td width="1%" bgcolor="#993333" class="NArialL" align=center><font color="#FFFFFF">Taxable</font></td>
			<td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Req'd Dock Date</font></td>
			<td width="5%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Quantity</font></td>
			<td width="10%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Price </font></td>
			<td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Amount</font></td>
			<td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Status</font></td>
			<td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Expedite<br>Fee</font></td>
             <%
                if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_CUSTOM_PRICE_FIELD1)) {
             %>
                <td width="15%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.sales.lineItem.customPriceField1" /></font></td>
             <%
                 }
                 if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_CUSTOM_TEXT_FIELD1)) {
             %>
                    <td width="15%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.sales.lineItem.customTextField1" /></font></td>
             <%
                 }
         %>
		</tr>

<logic:iterate id="myHashMap" name="lineItemsWithSubtotals">
    <logic:iterate id="lineItemList" name="myHashMap" >
          <logic:iterate id="LineItem" name="lineItemList" property="key" type="com.scalar.chiptrack.sales.LineItem">
			  <tr>
				  <td width="8%" bgcolor="#DEE1E2" class="bodytext">
					  <bean:write name="LineItem" property="lineItemNo"/>
				  </td>
				  <td width="8%" bgcolor="#DEE1E2" class="bodytext">
					  <logic:notEqual name="LineItem" property="poLineItemNo" value="0">
						  <bean:write name="LineItem" property="poLineItemNo"/>
					  </logic:notEqual>
				  </td>
				  <td width="15%" bgcolor="#DEE1E2" class="bodytext"><bean:write name="LineItem" property="manufacturingPartNo"/></td>
                  <% if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_MARKETING_PART_NUMBER)) { %>
                    <td width="15%" bgcolor="#DEE1E2" class="bodytext" align=center><bean:write name="LineItem" property="marketingPartNo"/></td>
                  <% } %>
				  <td width="15%" bgcolor="#DEE1E2" class="bodytext">
					  <logic:equal value="-2" name="LineItem" property="customerPartNo">
						  <bean:write name="LineItem" property="newCustomerPartNo"/>
					  </logic:equal>
					  <logic:notEqual value="-2" name="LineItem" property="customerPartNo">
						  <bean:write name="LineItem" property="customerPartNo"/>
					  </logic:notEqual>
				  </td>
				  <td width="15%" bgcolor="#DEE1E2" class="bodytext">
					  <bean:write name="LineItem" property="lineItemDescription"/>
				  </td>
				  <td width="1%" bgcolor="#DEE1E2" class="bodytext" align=center>
					  <bean:write name="LineItem" property="isTaxableAsString"/>
				  </td>
				  <td width="15%" bgcolor="#DEE1E2" class="bodytext">
					  <bean:write name="LineItem" property="requestDate"/>
				  </td>
				  <td width="5%" bgcolor="#DEE1E2" class="bodytext" align=right>
					  <bean:write name="LineItem" property="qtyAsString"/>
				  </td>
				  <td width="10%" bgcolor="#DEE1E2" class="bodytext" align=right>
					  <bean:write name="LineItem" property="unitPriceAsString"/>
				  </td>
				  <td width="15%" bgcolor="#DEE1E2" class="bodytext" align=right>
					  <bean:write name="LineItem" property="amountAsString"/>
				  </td>
				  <td width="15%" bgcolor="#DEE1E2" class="bodytext">
					  <bean:write name="LineItem" property="status"/>
				  </td>
				  <td width="15%" bgcolor="#DEE1E2" class="bodytext">
					  <logic:equal name="LineItem" property="isExpedite" value="true">Yes</logic:equal>
					  <logic:equal name="LineItem" property="isExpedite" value="false">No</logic:equal>
				  </td>
                  <%
                     if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_CUSTOM_PRICE_FIELD1)) {
                 %>
                    <td width="10%" bgcolor="#DEE1E2" class="bodytext" align=right>
                        <bean:write name="LineItem" property="customPriceField1AsString"/>
                    </td>
                 <%
                     }
                     if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_CUSTOM_TEXT_FIELD1)) {
                 %>
                    <td width="20%" bgcolor="#DEE1E2" class="bodytext" align=center>
                        <bean:write name="LineItem" property="customTextField1"/>
                    </td>
                 <%
                     }
                 %>
			  </tr>
		  </logic:iterate>
        <tr>
            <td colspan="<%=noOfColumnsBeforeQty%>" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                Sub Total
            </td>
            <bean:define id="subTotal" name="lineItemList" property="value" type="com.scalar.chiptrack.sales.SubTotal"/>
            <td colspan="1" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                <bean:write name="subTotal" property="subTotalQty" />
            </td>
            <td>&nbsp;</td>
            <td colspan="1" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                <bean:write name="subTotal" property="subTotalAmt" />
            </td>
        </tr>
     </logic:iterate>
</logic:iterate>

    <tr><td colspan=10>&nbsp;</td></tr>
    <tr>
        <td colspan="<%=noOfColumnsBeforeQty+2%>" class="NArialL" align="right">Total</td>
        <td bgcolor="#DEE1E2" class="NArialL" align="right"><bean:write name="salesOrderForm" property="subTotalAsString" /></td>
     </tr>
    <%  int salesTaxStateColspan = noOfColumnsBeforeQty-3; %>
	 <tr>
		<td colspan="<%=salesTaxStateColspan%>" width="35%" class="NArialL" align=right>Sales Tax State</td>
        <td width="15%"class="NArialL" align=right>
            <html:select name="salesOrderForm" property="salesTaxType" styleClass="txfield" disabled= "true">
                <html:option value="0">Non Taxable</html:option>
                <html:options collection="salesTaxes" property="value" labelProperty="label" />
            </html:select>
        </td>
	    <td colspan="<%=noOfColumnsBeforeQty-salesTaxStateColspan+1%>" width="35%" align=right class="NArialL">Sales Tax</td>
        <td width="15%"bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="salesOrderForm" property="salesTaxAsString" /></td>
     </tr>
    <tr>
        <td colspan="<%=noOfColumnsBeforeQty+2%>" align=right class="NArialL">Freight</td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="salesOrderForm" property="frieghtAsString" /></td>
     </tr>
    <tr>
        <td colspan="<%=noOfColumnsBeforeQty+2%>" align=right class="NArialL"><bean:write name="salesOrderForm" property="miscName"/></td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="salesOrderForm" property="miscAsString" /></td>
     </tr>
    <tr>
        <td colspan="<%=noOfColumnsBeforeQty+2%>" align=right class="NArialL">Order Total</td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="salesOrderForm" property="orderTotalAsString" /></td>
     </tr>
   </table>
   </td></tr>
   <tr><td colspan=6 align=center class='NArialL'>
    </td></tr>
    </table>
<input type="hidden" name="customerName" value="<bean:write name="salesOrderForm" property="customerName" />" />
<html:hidden property="customerId" />
<html:hidden property="odmId" />
<input type="hidden" name="action" value="">
<input type="hidden" name="hdnShippingMethodName" value="<bean:write name="salesOrderForm" property="shippingMethod" />" >
<input type="hidden" name="hdnshippingAccount" value="<bean:write name="salesOrderForm" property="shippingAccount" />" >
<input type="hidden" name="isSample" value="<%=request.getParameter("isSample")%>">
<input type="hidden" name="shipAccount1" value="<bean:write name="salesOrderForm" property="shippingMethod" />"/>

<% String changeNo = request.getParameter("changeNo");     %>
<html:hidden name="salesOrderForm" property="changeNo" />
</html:form>

<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>

